package top.scauwlt;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import top.scauwlt.annotation.RpcScan;

/**
 * @Author wmm
 * @Date 2022/7/27 22:36
 */
@RpcScan(basePackage = {"top.scauwlt"})
public class NettyRpcClientMain {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(NettyRpcClientMain.class);
        HelloController helloController = (HelloController) applicationContext.getBean("helloController");
        helloController.testHello();
    }
}
